import { Component, OnInit, Input, trigger, state, style, animate, transition } from '@angular/core';
declare let $: any;
@Component({
  selector: 'app-toast',
  templateUrl: './toast.component.html',
  styleUrls: ['./toast.component.css'],
})
export class ToastComponent implements OnInit {

  @Input('msg') msg: any;
  constructor() {
  }

  ngOnInit() {

  }

  ngOnChanges(changes) {
    $('.toast-win').fadeIn(400);
    setTimeout(function () {
      $('.toast-win').fadeOut(400);
    }, 2000);
  }
}
